package com.dmap.admin.service.backgroundv1;

import com.dmap.admin.po.AdminPermissions;
import com.dmap.admin.po.AdminRolePermissions;

import java.util.List;

/**
 * \* User: silent
 * \* Date: 08/12/17 Time: 11:02
 * \* Description:
 * \
 */
public interface RolePermissionService {

    AdminRolePermissions insert(Long roleId, Long permissionId);

    boolean isExistInRolePermissionTable(Long roleId, Long permissionId);

    List<AdminPermissions> selectPermissionListByRoleId(Long roleId);

    int deletePermissionListByRoleId(Long roleId);

}